<template>
  <div class="boss">
    <!-- 版心区域 -->
    <div class="area-center">
      <!-- 总区域 -->
      <!-- <h3>讲座</h3> -->
      <head-page title="讲 座" id="back"></head-page>
      <!-- 底部区域 -->
      <div class="bottom m-t-10">
        <div
          class="small title-center m-t-07"
          @click="detail(item)"
          v-for="(item, index) in list"
          :key="index"
        >
          <!-- @click="interdetail(item.institueType)" -->
          <!-- 原点区域 -->
          <div class="left">{{ index + 1 }}.</div>
          <!-- 内容区域 -->
          <div class="right ">
            {{ item.institueType }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { institueType } from "@/api/index";
export default {
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    institueType().then((res) => {
      if (res.data.code == 200) {
        // console.log(res.data.rows);
        this.list = res.data.rows;
      }
    });
  },
  methods: {
    // 返回
    back() {
      this.$router.go("-1");
    },
    detail(item) {
      this.$router.push({
        name: "lecturefour",
        query: {
          id: item.institueId,
        },
      });
    },
  },
};
</script>

<style scoped>
/* 整体区域 */
.boss {
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: center;
}

.tu {
  width: 5%;
  height: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wen {
  width: 100%;
  display: flex;
}
.wen img {
  width: 0.11rem;
}

.le {
  width: 93%;
  height: 100%;
  text-align: center;
  line-height: 0.3rem;
  font-size: 0.18rem;
  padding-left: 0.1rem;
  font-weight: 700;
}
/* 底部区域 */
.bottom {
  width: 100%;


}
.small {
  width: 100%;
  display: flex;

}
/* 原点区域 */
.left {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.1rem;

}

/* 内容区域 */
.right {
  height: 100%;
  padding-left: 0.05rem;

}
</style>